var BASE_URL = gconf.BASE_API_URL

const gapis = {
    login() {
      console.log('>>login')
      let data = {
        username: 'tony',
        password: '111111'
      }
      let url = `${BASE_URL}/api/v1/login/`
      return httpPost(url, data)
    },
    getDictData(code) {
      let params = { code: code }
      let url = `${BASE_URL}/admin/dict/read`
      return httpGet(url, params)
    },
    getTaskFuncs() {
      let url = '/admin/task/config/funcs'
      return httpGet(url, {})
    }
}